{extend name="public/edit" /}

{block name="content"}
<div class="layui-form-item">
    <label class="layui-form-label">分类</label>
    <div class="layui-input-block">
        <select name="cid" lay-filter="aihao">
                    <option value="0">顶级分类</option>
                    {volist name="data" id="vo"}
                    <option value="{$vo.id}">{$vo.name}</option>
                    {/volist}
        </select>
    </div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label">链接地址</label>
    <div class="layui-input-block">
        <input type="text" name="url" value="" lay-verify="required" placeholder="点此请输入链接地址" autocomplete="off"
            class="layui-input">
    </div>
</div>

<div class="layui-form-item">
<label class="layui-form-label">图标</label>
<div class="layui-input-block">
<div class="layui-upload">
<button type="button" name="pic" number="1" class="layui-btn form-file-pic">选择文件</button>
<div class="layui-upload-list">

</div>
</div>
</div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label">分类名称</label>
    <div class="layui-input-block">
        <input type="text" name="name" value="" lay-verify="required" placeholder="点此请输入分类名称" autocomplete="off"
            class="layui-input">
    </div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label">是否显示</label>
    <div class="layui-input-block">
        <input type="radio" name="cate_show" value="1" lay-verify="required"  autocomplete="off" checked title="是" 
            class="layui-input">
        <input type="radio" name="cate_show" value="0" lay-verify="required"  autocomplete="off" title="否" 
            class="layui-input">   
    </div>
</div>
{/block}

{block name="script"}
<script>
    views.verify(false).get();
</script>
{/block}